package cate.common.table.activity.restrictcall.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.restrictcall.row.RestrictCallLimitRow;

public class RestrictCallLimitSheet extends ESheet<RestrictCallLimitRow> {
    @Override
    public String getSheetName() {
        return "VIP限制次数";
    }

    public RestrictCallLimitRow rowByVipType(int vip, int type) {
        for (RestrictCallLimitRow row : list) {
            if (row.vip == vip && row.campMark == type){
                return row;
            }
        }
        return null;
    }
}
